﻿//You can change this to feet your needs, just please keep giving credits to the author
//Thanks
//	DarkAngel  ( DarkAngel@IdleZone.Org )

using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace DarkRuler
{
	public partial class FormUpdate : Form
	{
		public FormUpdate()
		{
			InitializeComponent();
		}

		private void menuItem1_Click(object sender, EventArgs e)
		{
			this.Close();
		}

		private void menuItem2_Click(object sender, EventArgs e)
		{
			Azure.DataAccess.Update();
			//If we are back here : no updates ^^
		}

		private void FormUpdate_Load(object sender, EventArgs e)
		{
			labelCurrentVersion.Text = labelCurrentVersion.Text.Replace("####", Azure.DataAccess.CurrentVersion.ToString(4));
			labelNewVersion.Text = labelNewVersion.Text.Replace("####", Azure.DataAccess.LatestVersion.ToString(4));
			labelChangeLog.Text = labelChangeLog.Text.Replace("####", Azure.DataAccess.ChangeLog);
		}
	}
}